\hypertarget{classSafeQueue}{\section{Safe\-Queue$<$ T $>$ Class Template Reference}
\label{classSafeQueue}\index{Safe\-Queue$<$ T $>$@{Safe\-Queue$<$ T $>$}}
}


线程安全队列  




{\ttfamily \#include $<$safe\-Queue.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSafeQueue_a9f9e5e3ad0251438e5d0d22acf42ec6c}{void \hyperlink{classSafeQueue_a9f9e5e3ad0251438e5d0d22acf42ec6c}{push} (T t)}\label{classSafeQueue_a9f9e5e3ad0251438e5d0d22acf42ec6c}

\begin{DoxyCompactList}\small\item\em 向队尾添加一个元素 \end{DoxyCompactList}\item 
std\-::list$<$ T $>$ \hyperlink{classSafeQueue_a0231290c5b785ac7ac5ba966c1160531}{move\-All} ()
\begin{DoxyCompactList}\small\item\em 移除所有元素 \end{DoxyCompactList}\item 
void \hyperlink{classSafeQueue_a1f853236e45bdc59d528b11cd5584d23}{move\-All} (std\-::list$<$ T $>$ \&elements)
\begin{DoxyCompactList}\small\item\em 移除所有元素并添加到指定列表队尾中 \end{DoxyCompactList}\item 
\hypertarget{classSafeQueue_ab28c475e4b507c354d67d63460ca434d}{bool \hyperlink{classSafeQueue_ab28c475e4b507c354d67d63460ca434d}{empty} ()}\label{classSafeQueue_ab28c475e4b507c354d67d63460ca434d}

\begin{DoxyCompactList}\small\item\em 是否为空 \end{DoxyCompactList}\item 
\hypertarget{classSafeQueue_a458b819b22e7db4d498e1253856fbfc7}{size\-\_\-t \hyperlink{classSafeQueue_a458b819b22e7db4d498e1253856fbfc7}{size} ()}\label{classSafeQueue_a458b819b22e7db4d498e1253856fbfc7}

\begin{DoxyCompactList}\small\item\em 获取元素个数 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$class Safe\-Queue$<$ T $>$}

线程安全队列 

\subsection{Member Function Documentation}
\hypertarget{classSafeQueue_a0231290c5b785ac7ac5ba966c1160531}{\index{Safe\-Queue@{Safe\-Queue}!move\-All@{move\-All}}
\index{move\-All@{move\-All}!SafeQueue@{Safe\-Queue}}
\subsubsection[{move\-All}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ std\-::list$<$T$>$ {\bf Safe\-Queue}$<$ T $>$\-::move\-All (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classSafeQueue_a0231290c5b785ac7ac5ba966c1160531}


移除所有元素 

\begin{DoxyReturn}{Returns}
移除的元素列表 
\end{DoxyReturn}
\hypertarget{classSafeQueue_a1f853236e45bdc59d528b11cd5584d23}{\index{Safe\-Queue@{Safe\-Queue}!move\-All@{move\-All}}
\index{move\-All@{move\-All}!SafeQueue@{Safe\-Queue}}
\subsubsection[{move\-All}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ void {\bf Safe\-Queue}$<$ T $>$\-::move\-All (
\begin{DoxyParamCaption}
\item[{std\-::list$<$ T $>$ \&}]{elements}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classSafeQueue_a1f853236e45bdc59d528b11cd5584d23}


移除所有元素并添加到指定列表队尾中 


\begin{DoxyParams}{Parameters}
{\em elements} & 存储移除的元素 \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
include/ec/safe\-Queue.\-h\end{DoxyCompactItemize}
